package com.iraeta.entity.main;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;

/**
 * erp_rdrecord11
 * @author 
 */
public class ErpRdrecord11 implements Serializable {
    private Long autoid;

    private Long id;

    private String invcode;     //出库给那个生产物料的物料编码

    private BigDecimal iquantity;   //出库给那个生产物料的数量

    private String iorderdid;   //需求跟踪id

    private String iordercode;  //需求跟踪号

    private String comcode;     //委外订单号

    private String iomodid;     //委外订单行ID

    private String cmocode;     //生产订单号

    private String imoseq;      //生产订单行号

    private String ccode;       //材料出库单号

    private Date ddate;

    private String cbustype;

    private String cwhname;

    private static final long serialVersionUID = 1L;

    public Long getAutoid() {
        return autoid;
    }

    public void setAutoid(Long autoid) {
        this.autoid = autoid;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getInvcode() {
        return invcode;
    }

    public void setInvcode(String invcode) {
        this.invcode = invcode;
    }

    public BigDecimal getIquantity() {
        return iquantity;
    }

    public void setIquantity(BigDecimal iquantity) {
        this.iquantity = iquantity;
    }

    public String getIorderdid() {
        return iorderdid;
    }

    public void setIorderdid(String iorderdid) {
        this.iorderdid = iorderdid;
    }

    public String getIordercode() {
        return iordercode;
    }

    public void setIordercode(String iordercode) {
        this.iordercode = iordercode;
    }

    public String getComcode() {
        return comcode;
    }

    public void setComcode(String comcode) {
        this.comcode = comcode;
    }

    public String getIomodid() {
        return iomodid;
    }

    public void setIomodid(String iomodid) {
        this.iomodid = iomodid;
    }

    public String getCmocode() {
        return cmocode;
    }

    public void setCmocode(String cmocode) {
        this.cmocode = cmocode;
    }

    public String getImoseq() {
        return imoseq;
    }

    public void setImoseq(String imoseq) {
        this.imoseq = imoseq;
    }

    public String getCcode() {
        return ccode;
    }

    public void setCcode(String ccode) {
        this.ccode = ccode;
    }

    public Date getDdate() {
        return ddate;
    }

    public void setDdate(Date ddate) {
        this.ddate = ddate;
    }

    public String getCbustype() {
        return cbustype;
    }

    public void setCbustype(String cbustype) {
        this.cbustype = cbustype;
    }

    public String getCwhname() {
        return cwhname;
    }

    public void setCwhname(String cwhname) {
        this.cwhname = cwhname;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ErpRdrecord11)) return false;
        ErpRdrecord11 that = (ErpRdrecord11) o;
        return autoid.equals(that.autoid) && id.equals(that.id) && Objects.equals(invcode, that.invcode) && Objects.equals(iorderdid, that.iorderdid) && Objects.equals(iordercode, that.iordercode)
                && Objects.equals(comcode, that.comcode) && Objects.equals(iomodid, that.iomodid) && Objects.equals(cmocode, that.cmocode) && Objects.equals(imoseq, that.imoseq) && Objects.equals(cwhname, that.cwhname)
                && Objects.equals(ccode, that.ccode) && Objects.equals(ddate, that.ddate) && Objects.equals(cbustype, that.cbustype) && iquantity.compareTo( that.iquantity) == 0 ;
    }

    @Override
    public int hashCode() {
        return Objects.hash(autoid, id, invcode, iquantity, iorderdid, iordercode, comcode, iomodid, cmocode, imoseq, ccode, ddate, cbustype, cwhname);
    }
}